from django.db import models


class SoftwareCompany(models.Model):
    name = models.CharField(max_length=64, verbose_name='公司名称')
    address = models.CharField(max_length=255, verbose_name='联系地址')
    tel = models.CharField(max_length=32, verbose_name='联系电话')
    contact = models.CharField(max_length=64, verbose_name='联系人')
    create_time = models.DateTimeField("创建时间", auto_now_add=True)
    update_time = models.DateTimeField("更新时间", auto_now=True)

    def __str__(self):
        return self.name

    class Meta:
        managed = False
        db_table = 'software_company'
        verbose_name = '软件厂商'
        verbose_name_plural = '软件厂商'
